package cn.controller;

import cn.service.impl.CategoryAttributesServiceImpl;
import entity.Result;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@CrossOrigin
public class CategoryAttributesController {
    @Resource
    CategoryAttributesServiceImpl categoryAttributesService;

    @RequestMapping("/getAllAttribute")
    public Result getAllAttribute(Long parent_id) {
        return categoryAttributesService.getAllAttribute(parent_id);
    }
}
